package com.ruoyi.huanghefd.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * 动火工作票 子表2 检测记录
 * @TableName worksheet_dh_log
 */
@TableName(value ="worksheet_dh_log")
@Data
public class WorksheetDhLog implements Serializable {
    /**
     * ID
     */
    private String dhId;

    /**
     * 工作票编号
     */
    private String dhCode;

    /**
     * 动火执行人
     */
    private String dhExecutorid;

    /**
     * 检测时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date testTime;

    /**
     * 检测项目
     */
    private String testProject;

    /**
     * 检测值
     */
    private String testValue;

    /**
     * 检测人
     */
    private String testerid;

    /**
     * 检测人
     */
    private String tester;

    /**
     * 备注
     */
    private String remark;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        WorksheetDhLog other = (WorksheetDhLog) that;
        return (this.getDhId() == null ? other.getDhId() == null : this.getDhId().equals(other.getDhId()))
            && (this.getDhCode() == null ? other.getDhCode() == null : this.getDhCode().equals(other.getDhCode()))
            && (this.getDhExecutorid() == null ? other.getDhExecutorid() == null : this.getDhExecutorid().equals(other.getDhExecutorid()))
            && (this.getTestTime() == null ? other.getTestTime() == null : this.getTestTime().equals(other.getTestTime()))
            && (this.getTestProject() == null ? other.getTestProject() == null : this.getTestProject().equals(other.getTestProject()))
            && (this.getTestValue() == null ? other.getTestValue() == null : this.getTestValue().equals(other.getTestValue()))
            && (this.getTesterid() == null ? other.getTesterid() == null : this.getTesterid().equals(other.getTesterid()))
            && (this.getTester() == null ? other.getTester() == null : this.getTester().equals(other.getTester()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getDhId() == null) ? 0 : getDhId().hashCode());
        result = prime * result + ((getDhCode() == null) ? 0 : getDhCode().hashCode());
        result = prime * result + ((getDhExecutorid() == null) ? 0 : getDhExecutorid().hashCode());
        result = prime * result + ((getTestTime() == null) ? 0 : getTestTime().hashCode());
        result = prime * result + ((getTestProject() == null) ? 0 : getTestProject().hashCode());
        result = prime * result + ((getTestValue() == null) ? 0 : getTestValue().hashCode());
        result = prime * result + ((getTesterid() == null) ? 0 : getTesterid().hashCode());
        result = prime * result + ((getTester() == null) ? 0 : getTester().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", dhId=").append(dhId);
        sb.append(", dhCode=").append(dhCode);
        sb.append(", dhExecutorid=").append(dhExecutorid);
        sb.append(", testTime=").append(testTime);
        sb.append(", testProject=").append(testProject);
        sb.append(", testValue=").append(testValue);
        sb.append(", testerid=").append(testerid);
        sb.append(", tester=").append(tester);
        sb.append(", remark=").append(remark);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}